SuperStrict
rem
	bbdoc: Type description
end rem

Import "TScintillaDefinition.bmx"

Type TScintillaStyle Extends TScintillaDefiniton
	
	Method RegisterKeys()
		
	End Method
	
	Method Version:String()
		Return "1.0.0.0"
	End Method
	
	Method Typ:String()
		Return "SCN_STYLE"
	End Method
	
	Rem
	Method styleSetDefault()
		send(SCI_STYLERESETDEFAULT)
	End Method

	Method styleClearAll()
		send(SCI_STYLECLEARALL)
	End Method

	Method styleSetFont(number:Int, name:String)
		Local f:Byte Ptr = name.toCString()
		send(SCI_STYLESETFONT, number, Int(f))
		MemFree(f)
	End Method

	Method styleSetSize(number:Int, size:Int)
		send(SCI_STYLESETSIZE, number, size)
	End Method

	Method styleSetBold(number:Int, bool:Int)
		send(SCI_STYLESETBOLD, number, bool)
	End Method

	Method styleSetItalic(number:Int, bool:Int)
		send(SCI_STYLESETITALIC, number, bool)
	End Method

	Method styleSetUnderlined(number:Int, bool:Int)
		send(SCI_STYLESETUNDERLINE, number, bool)
	End Method

	Method styleSetForegroundColor(number:Int, color:NSColor)
		send(SCI_STYLESETFORE, number, convertColor(color))
	End Method

	Method styleSetBackgroundColor(number:Int, color:NSColor)
		send(SCI_STYLESETBACK, number, convertColor(color))
	End Method

	Method styleSetEOLFilled(number:Int, bool:Int)
		send(SCI_STYLESETEOLFILLED, number, bool)
	End Method

	Method styleSetCase(number:Int, caseMode:Int)
		send(SCI_STYLESETCASE, number, caseMode)
	End Method

	Method styleSetVisible(number:Int, bool:Int)
		send(SCI_STYLESETVISIBLE, number, bool)
	End Method

	Method styleSetChangeable(number:Int, changeable:Int)
		send(SCI_STYLESETVISIBLE, number, changeable)
	End Method

	Method styleSetSelectionForegroundColor(bool:Int, color:NSColor)
		send(SCI_SETSELFORE, bool, convertColor(color))
	End Method

	Method styleSetSelectionBackgroundColor(bool:Int, color:NSColor)
		send(SCI_SETSELBACK, bool, convertColor(color))
	End Method

	Method styleSetCaretLineForegroundColor(color:NSColor)
		send(SCI_SETCARETFORE, convertColor(color))
	End Method

	Method styleSetCaretLineBackgroundColor(color:NSColor)
		send(SCI_SETCARETLINEBACK, convertColor(color))
	End Method
	End Rem
	
End Type
